import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import "rxjs/add/operator/map";
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/catch';

@Injectable()
export class HttpURLService{
  private communication:string ;//采集
  private dims:string ;
  private emis:string ;
  constructor(private http: HttpClient) { }
  getUrl(pam): string {
    // if(pam=='communication'){
    //   this.communication = '/gn-communication';
    //   return this.communication;
    // }else if(pam=='DIMS'){
    //   this.dims = '/gn-dims';
    //   return this.dims;
    // }else if(pam == 'emis'){
    //   this.emis = '/gn-emis';
    //   return this.emis;
    // }
    return '/gn_ead';

  }
}
